package com.badlogicgames.oceanballwar.wolf;

import java.util.HashSet;
import java.util.Iterator;

import com.badlogicgames.common.PropertyListener;

public class WolfPoolManager {
	private final WolfPool wolfPool = new WolfPool();
	private HashSet listeners= new HashSet();
	public void initial()
	{		
		
	}
	
	public void addListener(PropertyListener propertyListener){
		synchronized(listeners){
			listeners.add(propertyListener);
		}
	}
	
	public void firePropertyChange(){
		Iterator iterator;
		synchronized(listeners){	
			iterator = new HashSet(listeners).iterator();
			}
		/*
		PropertyEvent propertyEvent = new PropertyEvent();
		while(iterator.hasNext()){
			PropertyListener propertyListener = (propertyListener) iterator.next();
			propertyListener.propertyChanged(propertyEvent);
		}*/
	}
}
